Skip to content

fix: require catalog-backed context promotion#146

Merged
saagpatel merged 1 commit into
mainfrom
codex/fix-portfolio-context-promotion
Jul 4, 2026
Merged

fix: require catalog-backed context promotion#146
saagpatel merged 1 commit into
mainfrom
codex/fix-portfolio-context-promotion

Conversation

@saagpatel

Copy link
Copy Markdown
Owner

Summary

  • require top-level AGENTS.md / CLAUDE.md when using primary context support for README-backed promotion
  • require declared.category to come from the catalog before infrastructure minimum-viable context is promoted to standard
  • add regressions for nested primary context files and legacy-registry-only infrastructure category promotion

Closes #145.

Validation

  • uv run python - <<'PY' ... repro before patch showed nested_primary_counts=True and legacy_category_promotes=standard
  • uv run pytest tests/test_portfolio_context_contract.py::test_substantive_readme_support_requires_top_level_primary_context tests/test_portfolio_truth.py::test_legacy_registry_infra_category_does_not_promote_context_quality -q -> 2 passed
  • uv run pytest tests/test_portfolio_context_contract.py tests/test_portfolio_truth.py -q -> 84 passed
  • uv run ruff check src/portfolio_context_contract.py src/portfolio_truth_reconcile.py tests/test_portfolio_context_contract.py tests/test_portfolio_truth.py -> passed
  • git diff --check -> passed
  • uv run pytest -q -> 2664 passed, 2 skipped

@codex review

@saagpatel

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: a22cf140b3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@saagpatel saagpatel merged commit 32fffe3 into main Jul 4, 2026
4 checks passed
@saagpatel saagpatel deleted the codex/fix-portfolio-context-promotion branch July 4, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disposition portfolio context promotion findings from #144

1 participant